Ext.ns("map");

map.init = function() {
	map.panel.main = '';
};

map = {
	statics : {},
	panel : {
		main : {
			list : {
			},
			search : {
				namesearch : {
				},
			},
		},
	},
	btn : {
		search : {
			close : {},
			namesearch : {
				close : {},
				search : {},
			},
		},
		list : {
			close : {},
		},
	}
};

map.statics = {
	value1 : '정비소 이름을 검색하세요.',
	alert : function(value1 , value2) {
		return new Ext.MessageBox({
			hideOnMaskTap:false,
			modal:true,
		}).alert(value1 , value2);
	}
};

map.panel.main = {
	fullscreen: true,
	html: "<iframe name='if1' src='/curmap.jsp?width="+  main.winWidth +"&height="+ main.winHeight +"' width='100%' , height='100%' frameborder='0' border='0' cellspacing='0' cellpadding='0' scrolling='1'></iframe>",
	dockedItems : [{
		dock: 'top',
		xtype: 'toolbar',
		title: '주변정비소',
		items: [map.btn.search , xt_spacer , map.btn.list]
	}]
};

map.panel.search = {
	fullscreen: true,
	dockedItems : [{
		dock: 'top',
		xtype: 'toolbar',
		title: '지역 검색',
		items: [map.btn.list.close , xt_spacer , map.btn.search.namesearch]
	}],
	items : '',
};

map.btn.search = {
	text : '검색',
	handler : function(btn , event) {
		main.panel.cardSwitchAnimation='pop';
		map.panel.make.search();
		main.panel.layout.setActiveItem(map.panel.search);
		main.panel.doLayout();
	}
};

map.btn.list = {
	text : '리스트',
	handler : function(btn , event) {
		
	}
};